API

Finance APIs

GET finance/vat-postings/{vatPostingId}

VAT posting details for provided identifier

HTTP method GET
URI https://api.rambase.net/finance/vat-postings/{vatPostingId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {vatPostingId} VAT Posting identifier
Integer, minimum 100000
Successful HTTP status code 200
API resource identifier 2230, version 11

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
1

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]
$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$select String, optional Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information.
$expand String, optional Use to include output fields that are not returned by default in the response. Accepts a comma-separated list of expandable field names. See the Expand and Select page for more information.

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<VATPosting>
2
     <VATPostingId
VATPostingId

VAT Posting identifier

>
{Integer}</VATPostingId>
3
     <Status
Status

Status of VAT posting

>
{Integer}</Status>
4
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
5
     <Date
Date

Date of VAT posting. Currency rate calculation use this date.

>
{Date}</Date>
6
     <VATPeriod
VATPeriod

Accounting period this VAT posting belongs to

>
{Integer}</VATPeriod>
7
     <OriginalVATPeriod
OriginalVATPeriod

Original accounting period of VAT posting before VAT is postponed

>
{Integer}</OriginalVATPeriod>
8
     <IsPostponed
IsPostponed

Indicates if a VAT posting is postponed

>
{Boolean}</IsPostponed>
9
     <VATRate
VATRate

Rate between transaction currency and company VAT currency. VAT rate should be used to calculate VAT amount in company VAT currency.

>
{Decimal}</VATRate>
10
     <TotalsConverted
TotalsConverted

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

>
11
          <Currency
Currency

Three character code following the ISO 4217 standard

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

>
{String}</Currency>
12
          <NetAmount
NetAmount

Total net amount for all VAT codes

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

>
{Decimal}</NetAmount>
13
          <VATAmount
VATAmount

Total VAT amount for all VAT codes

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

>
{Decimal}</VATAmount>
14
          <VATRoundOffAmount
VATRoundOffAmount

Total round off amount for all VAT codes

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

>
{Decimal}</VATRoundOffAmount>
15
     </TotalsConverted>
16
     <VATEntity>
17
          <VATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)

>
{String}</VATRegistrationNumber>
18
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
19
          <Country
Country

Country name of VAT entity

>
{String}</Country>
20
          <CountryCode
CountryCode

Country code of VAT Entity

>
{String}</CountryCode>
21
     </VATEntity>
22
     <Transaction>
23
          <ItemId
ItemId

Item-number of the object

>
{Integer}</ItemId>
24
          <ItemType
ItemType

Type of item

>
{String}</ItemType>
25
          <Object>
26
               <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
27
               <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
28
               <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
29
               <Date
Date

Date when the document was issued.

>
{Date}</Date>
30
               <RegistrationDate
RegistrationDate

Date of registration

>
{Date}</RegistrationDate>
31
               <Accounting>
32
                    <AccountingPeriod
AccountingPeriod

The accounting period the object belongs to

>
{Integer}</AccountingPeriod>
33
               </Accounting>
34
               <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
35
          </Object>
36
          <TransactionEntity>
37
               <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
38
               <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
39
               <Name
Name

Name of the customer/supplier, or last name if it is a person.

>
{String}</Name>
40
               <VATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)

>
{String}</VATRegistrationNumber>
41
               <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
42
          </TransactionEntity>
43
          <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

>
{String}</RamBaseKey>
44
          <ItemLink
ItemLink

API reference to the item

>
{String}</ItemLink>
45
     </Transaction>
46
     <LatestReport>
47
          <ReportedDate
ReportedDate

Date of latest VAT reporting

>
{Date}</ReportedDate>
48
          <ReportedBy
ReportedBy

Employee who stated that latest reporting was completed

>
49
               <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
50
               <FirstName
FirstName

First name of employee

>
{String}</FirstName>
51
               <LastName
LastName

Last name of employee

>
{String}</LastName>
52
               <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
53
          </ReportedBy>
54
     </LatestReport>
55
</VATPosting>
1
{
2
     "vATPosting": {
3
          "vATPostingId
VATPostingId

VAT Posting identifier

":
"{Integer}",
4
          "status
Status

Status of VAT posting

":
"{Integer}",
5
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
6
          "date
Date

Date of VAT posting. Currency rate calculation use this date.

":
"{Date}",
7
          "vATPeriod
VATPeriod

Accounting period this VAT posting belongs to

":
"{Integer}",
8
          "originalVATPeriod
OriginalVATPeriod

Original accounting period of VAT posting before VAT is postponed

":
"{Integer}",
9
          "isPostponed
IsPostponed

Indicates if a VAT posting is postponed

":
"{Boolean}",
10
          "vATRate
VATRate

Rate between transaction currency and company VAT currency. VAT rate should be used to calculate VAT amount in company VAT currency.

":
"{Decimal}",
11
          "totalsConverted
TotalsConverted

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

":
{
12
               "currency
Currency

Three character code following the ISO 4217 standard

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

":
"{String}",
13
               "netAmount
NetAmount

Total net amount for all VAT codes

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

":
"{Decimal}",
14
               "vATAmount
VATAmount

Total VAT amount for all VAT codes

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

":
"{Decimal}",
15
               "vATRoundOffAmount
VATRoundOffAmount

Total round off amount for all VAT codes

This field is greyed out because it is an expandable field. You have to add $expand=TotalsConverted in your request URI to get this field

":
"{Decimal}"
16
          },
17
          "vATEntity": {
18
               "vATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)

":
"{String}",
19
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
20
               "country
Country

Country name of VAT entity

":
"{String}",
21
               "countryCode
CountryCode

Country code of VAT Entity

":
"{String}"
22
          },
23
          "transaction": {
24
               "itemId
ItemId

Item-number of the object

":
"{Integer}",
25
               "itemType
ItemType

Type of item

":
"{String}",
26
               "object": {
27
                    "objectId
ObjectId

Identifier of the object

":
"{Integer}",
28
                    "objectType
ObjectType

Type of object

":
"{String}",
29
                    "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
30
                    "date
Date

Date when the document was issued.

":
"{Date}",
31
                    "registrationDate
RegistrationDate

Date of registration

":
"{Date}",
32
                    "accounting": {
33
                         "accountingPeriod
AccountingPeriod

The accounting period the object belongs to

":
"{Integer}"
34
                    },
35
                    "objectLink
ObjectLink

API reference to the object

":
"{String}"
36
               },
37
               "transactionEntity": {
38
                    "objectId
ObjectId

Identifier of the object

":
"{Integer}",
39
                    "objectType
ObjectType

Type of object

":
"{String}",
40
                    "name
Name

Name of the customer/supplier, or last name if it is a person.

":
"{String}",
41
                    "vATRegistrationNumber
VATRegistrationNumber

Unique number assigned by the relevant tax authority to identify a party for use in relation to value added tax (VAT)

":
"{String}",
42
                    "objectLink
ObjectLink

API reference to the object

":
"{String}"
43
               },
44
               "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

":
"{String}",
45
               "itemLink
ItemLink

API reference to the item

":
"{String}"
46
          },
47
          "latestReport": {
48
               "reportedDate
ReportedDate

Date of latest VAT reporting

":
"{Date}",
49
               "reportedBy
ReportedBy

Employee who stated that latest reporting was completed

":
{
50
                    "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
51
                    "firstName
FirstName

First name of employee

":
"{String}",
52
                    "lastName
LastName

Last name of employee

":
"{String}",
53
                    "employeeLink
EmployeeLink

Employee reference

":
"{String}"
54
               }
55
          }
56
     }
57
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 100050 HTTP 403 No admittance as customer {0}
Error 100053 HTTP 403 You have only admittance to your own suppliers